package com.weike.yuanding.strategy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class VideoStrategyFactory {

    @Autowired
    private Map<String, VideoStrategy> strategyMap;

    public VideoStrategy getStrategy(Integer type) {
        return strategyMap.get(type.toString());
    }
}
